package com.ruoyi.pingan.fymodule.plugins.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户资质认证 - 资质认证
 * </p>
 *
 * @author wangy
 * @since 2025-06-11
 */
@Data
@TableName("sxo_plugins_certificate_user_auth")
@Schema(name = "SxoPluginsCertificateUserAuth对象", description = "用户资质认证 - 资质认证")
public class SxoPluginsCertificateUserAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "用户id")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "唯一标识")
    @TableField("unique_key")
    private String uniqueKey;

    @Schema(description = "标题")
    @TableField("title")
    private String title;

    @Schema(description = "状态（0待审核, 1已审核, 2已拒绝, 3已过期）")
    @TableField("status")
    private Byte status;

    @Schema(description = "证件名称")
    @TableField("licence_name")
    private String licenceName;

    @Schema(description = "证件号码")
    @TableField("licence_number")
    private String licenceNumber;

    @Schema(description = "证件图片地址")
    @TableField("licence_images")
    private String licenceImages;

    @Schema(description = "过期时间")
    @TableField("licence_expire_time")
    private Integer licenceExpireTime;

    @Schema(description = "拒绝、失败原因")
    @TableField("reason")
    private String reason;

    @Schema(description = "审核时间")
    @TableField("audit_time")
    private Integer auditTime;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private Integer addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private Integer updTime;
}
